package apps;

import java.text.ParseException;
import java.util.Calendar;
import java.util.Date;
import java.util.Vector;

/**
 * @author webSigned
 * 
 *         Bean to contain an events details
 */

public class Events {
	private String createTime;
	private String startTime;
	private String endTime;
	private String description;
	private Vector parties;

	/**
	 * 
	 */
	public Events() {
		this.createTime = Calendar.getInstance().getTime().toString();
	}

	/**
	 * @param createTime
	 * @param start
	 * @param end
	 * @param description
	 * @param parties
	 */
	public Events(String createTime, String start, String end,
			String description, Vector parties) {
		this.createTime = createTime;
		this.startTime = start;
		this.endTime = end;
		this.parties = parties;
		this.description = description;

	}

	/**
	 * @param start
	 * @param end
	 * @param description
	 * @param parties
	 */
	public Events(String start, String end, String description, Vector parties) {
		this.createTime = Calendar.getInstance().getTime().toString();
		this.startTime = start;
		this.endTime = end;
		this.parties = parties;
		this.description = description;

	}

	/**
	 * @return startTime
	 */
	public String getStart() {
		return startTime;
	}

	/**
	 * @return endTime
	 */
	public String getEnd() {
		return endTime;
	}

	/**
	 * @return parties
	 */
	public Vector getParties() {
		return parties;
	}

	/**
	 * @return createTime
	 */
	public String getCreate() {
		return createTime;
	}

	/**
	 * @return description
	 */
	public String getDesc() {
		return this.description;
	}

	/**
	 * @param parties
	 */
	public void setParties(Vector parties) {
		this.parties = parties;
	}

	/**
	 * @param createTime
	 */
	public void setCreate(String createTime) {
		this.createTime = createTime;
	}

	/**
	 * @param startTime
	 */
	public void setStart(String startTime) {
		this.startTime = startTime;
	}

	/**
	 * @param endTime
	 */
	public void setEnd(String endTime) {
		this.endTime = endTime;
	}

	/**
	 * @param description
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @param args
	 * @throws ParseException
	 */
	public static void main(String[] args) throws ParseException {
		// System.out.println(Calendar.getInstance().getTimeInMillis());
		Calendar cal = Calendar.getInstance();
		String event = new Events().getCreate();
		Date date = new Date(event);
		// Date date = DateFormat.getDateTimeInstance().parse(event);

		System.out.println(date);

	}
}
